package com.kalix.jyksh.proint.dao;

import com.kalix.framework.core.impl.dao.GenericDao;
import com.kalix.jyksh.proint.api.dao.IRealtimeBeanDao;
import com.kalix.jyksh.proint.entities.RealtimeBean;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.UUID;

/**
 * Created by Wanghw on 2018/10/10.
 * 设备运行状态请求
 */
public class RealtimeBeanDaoImpl extends GenericDao<RealtimeBean, Long> implements IRealtimeBeanDao {
    private String uuid;
    public RealtimeBeanDaoImpl() {

        uuid = UUID.randomUUID().toString();
    }
    @Override
    @PersistenceContext(unitName = "proint-unit")
    public void setEntityManager(EntityManager em) {
        super.setEntityManager(em);
    }
}
